package com.example.chirdrenserver.Holder;

public class UserHolder {
    public static ThreadLocal<Long> userThreadLocal=new ThreadLocal<>();
    public  static void set(Object userId){
        userThreadLocal.set(Long.valueOf(userId.toString()));
    }
    public static Long get(){
        return userThreadLocal.get();
    }
    public static void remove(){
        userThreadLocal.remove();
    }
}
